package top.fzqblog.reflect

/**
 * Created by 抽离 on 2017/8/4 0004.
 */
import kotlin.reflect.jvm.*

class B(val p: Int){
    fun say(){
        println("say：" + p)
    }
}


fun main(args: Array<String>) {
    println("p：" + B::p)
    println(B::p.javaGetter) // prints "public final int B.getP( )"
    println(B::p.javaField) // prints "private final int B.p"
    print(B::say.invoke(B(1)))
}